/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.agh.student.logic.webapp;

import java.util.List;
import javax.ejb.Local;
import pl.edu.agh.student.model.Role;
import pl.edu.agh.student.model.User;

/**
 *
 * @author janburkot
 */
@Local
public interface UserBean {
    
    void createUser();
    String save(User user, String role);
    String delete(User user);
    List<User> getAll();
    
    void refresh(User user);
    User getSelectedUser();
    void setSelectedUser(User user);
    void destroy();
    
    void addRole();
    List<String> getRoles();

    public pl.edu.agh.student.model.User getCurrentUser();
}
